<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/check_report_work/Check_Report_Work.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/check_report_work/Check_Report_Work.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Check_Report_Work",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "生产台账",
                name: "check_report_work/Check_Report_Work",
                newTabEdit: false,
                url: "/Check_Report_Work/",
                sortName: "Id"
            });
            const editFormFields = ref({"ProductId":"","EquipmentNo":"","JianfenLot":"","DianduLot":"","Qty":"","OperatorOnboard":"","OperatorOffload":"","TimeOnboard":"","TimeOffload":"","Duration":"","Remarks":""});
            const editFormOptions = ref([[{"title":"产品代码","field":"ProductId"},
                               {"title":"设备号","field":"EquipmentNo"}],
                              [{"title":"检分号","field":"JianfenLot"},
                               {"title":"电镀号","field":"DianduLot"}],
                              [{"title":"数量","field":"Qty","type":"number"},
                               {"title":"上机人员","field":"OperatorOnboard"}],
                              [{"title":"下机人员","field":"OperatorOffload"},
                               {"title":"上机时间","field":"TimeOnboard"}],
                              [{"title":"下机时间","field":"TimeOffload"},
                               {"title":"时长","field":"Duration","type":"decimal"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({"ProductId":"","EquipmentNo":"","JianfenLot":"","DianduLot":"","OperatorOnboard":"","OperatorOffload":"","TimeOnboard":"","TimeOffload":"","Duration":""});
            const searchFormOptions = ref([[{"title":"产品代码","field":"ProductId","type":"like"},{"title":"设备号","field":"EquipmentNo","type":"like"},{"title":"检分号","field":"JianfenLot","type":"like"},{"title":"电镀号","field":"DianduLot","type":"like"}],[{"title":"上机人员","field":"OperatorOnboard","type":"like"},{"title":"下机人员","field":"OperatorOffload","type":"like"},{"title":"上机时间","field":"TimeOnboard","type":"like"},{"title":"下机时间","field":"TimeOffload","type":"like"}],[{"title":"时长","field":"Duration","type":"like"}]]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"ProductId",title:"产品代码",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"EquipmentNo",title:"设备号",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"JianfenLot",title:"检分号",type:"string",width:150,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"DianduLot",title:"电镀号",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Qty",title:"数量",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"OperatorOnboard",title:"上机人员",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"OperatorOffload",title:"下机人员",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"TimeOnboard",title:"上机时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"TimeOffload",title:"下机时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Duration",title:"时长",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
